/*
 * @Author: lvgrape lvgrape@outlook.com
 * @Date: 2024-06-19 10:06:16
 * @LastEditors: lvgrape lvgrape@outlook.com
 * @LastEditTime: 2024-06-19 14:22:11
 * @FilePath: \zino_premium_rt\ZINO\hardware\lsm6dsr\offical\lsm6dsr_spi2.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

#ifndef __LSM6DSR_SPI2_H_
#define __LSM6DSR_SPI2_H_
#ifdef __cplusplus
extern "C"
{
#endif // __cplusplus

#include <stdint.h>

int lsm6dsr_spi2_read_data_polling_int(void);
int lsm6dsr_spi2_read_gyro_data_polling(int32_t* mdps_x, int32_t* mdps_y, int32_t* mdps_z);
int lsm6dsr_spi2_read_accel_data_polling(int32_t* mgx, int32_t *mgy, int32_t *mgz);
int lsm6dsr_spi2_read_temperature(float* degC);
int lsm6dsr_spi2_read_gyro_adc_data(int16_t *gyroAdc);
int lsm6dsr_spi2_read_accel_adc_data(int16_t *accelAdc);

#ifdef __cplusplus
}
#endif // __cplusplus
#endif
